package com.es.controller;

import com.es.service.StudentServiceI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * 描述:
 * es-meta-
 *
 * @author Derek
 * @create 2021-11-30 10:40
 */
@Controller
@RequestMapping("/student")
public class StudentController {

    @Autowired
    private StudentServiceI service;

    @RequestMapping("/list")
    public String list(HttpServletRequest request){
        request.setAttribute("list",service.list());
        return "student/student";
    }
}
